**Code for replicating Howard and Owens LSQ Model

logit bypass c.extremity100_scaled##i.minority comc floor_leader up_for_election duplicate_variable months_remaining bills_introduced sen_polarization100 spons_years i.minority##c.cosponsr2 impbill i.partybill i.cong i.major if chamber==1, cluster(pooleid)
mlogit method c.extremity100_scaled##i.minority comc floor_leader up_for_election duplicate_variable months_remaining bills_introduced sen_polarization100 spons_years i.minority##c.cosponsr2 impbill i.partybill i.cong i.major if chamber==1, cluster(pooleid)

*Model without polarization
mlogit method c.extremity100_scaled##i.minority comc floor_leader up_for_election duplicate_variable months_remaining bills_introduced spons_years i.minority##c.cosponsr2 impbill i.partybill i.cong i.major if chamber==1, cluster(pooleid)

*Heirarchical Multinomial Logit
melogit bypass up_for_election c.extremity100_scaled##i.majority duplicate_variable months_remaining bills_introduced sen_polarization100 comc spons_years i.majority##c.cosponsr2 impbill i.partybill i.major if chamber==1, cluster(pooleid) || cong:

 gsem (2.method <- c.extremity100_scaled##i.minority i.comc i.floor_leader i.up_for_election i.duplicate_variable c.months_remaining c.bills_introduced c.sen_polarization100 c.spons_years i.minority##c.cosponsr2 i.impbill i.partybill i.major M1[cong]) (3.method <- c.extremity100_scaled##i.minority i.comc i.floor_leader i.up_for_election i.duplicate_variable c.months_remaining c.bills_introduced c.sen_polarization100 c.spons_years i.minority##c.cosponsr2 i.impbill i.partybill i.major M2[cong]), mlogit
clear

***Passage models
logit passs i.bypass##i.impbill up_for_election c.extremity100_scaled##i.minority duplicate_variable months_remaining bills_introduced sen_polarization100 comc floor_leader spons_years i.minority##c.cosponsr2 impbill i.partybill i.cong i.major if chamber==1, cluster(pooleid)
logit passs i.uca##i.impbill i.rulexiv_objection##i.impbill up_for_election c.extremity100_scaled##i.minority duplicate_variable months_remaining bills_introduced sen_polarization100 comc floor_leader spons_years i.minority##c.cosponsr2 impbill i.partybill i.cong i.major if chamber==1, cluster(pooleid)
